package cn.codergege.demo.batch

import java.io.IOException
import org.springframework.batch.item.file.FlatFileHeaderCallback
import java.io.Writer


class StringHeaderWriter(private val header: String) : FlatFileHeaderCallback {

    @Throws(IOException::class)
    override fun writeHeader(writer: Writer) {
        writer.write(header)
    }
}